﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BUS;
using DAO;
using FDeal.PH_NguoiDung;

namespace FDeal
{    
    public partial class MemberMuahang_2 : System.Web.UI.Page
    {        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string iddeal = Request.QueryString["id"].ToString();
                int hinhthucthanhtoan = 0;

                if (RadioButton1.Checked)
                {
                    hinhthucthanhtoan = 0;
                }
                else if (RadioButton2.Checked)
                {
                    hinhthucthanhtoan = 1;
                }

                //Lưu tạm đơn hàng mới          
                DonHangTam.idthanhtoan = "TT" + hinhthucthanhtoan.ToString("000000");

                Tiep.PostBackUrl += "TT" + hinhthucthanhtoan.ToString("000000");
                QuayLai.NavigateUrl += iddeal;
            }
        }                           
    }
}